package cn.edu.zafu.bigdata.x.hjn;

public class TestStudentGradeManager {

    public static void main(String[] args) {
        StudentGradeManager manager = new StudentGradeManager();

        // 添加学生成绩
        manager.addStudent("Alice", 90);
        manager.addStudent("Bob", 85);
        manager.addStudent("Charlie", 92);

        // 查询学生成绩
        System.out.println("Alice的成绩: " + manager.getGrade("Alice")); // 输出: 90
        System.out.println("Bob的成绩: " + manager.getGrade("Bob"));     // 输出: 85
        System.out.println("David的成绩: " + manager.getGrade("David")); // 输出: -1

        // 删除学生成绩
        manager.removeStudent("Bob");
        System.out.println("Bob的成绩: " + manager.getGrade("Bob"));     // 输出: -1
    }
}
